package day18.pack3;

public class Pig {
    private String nickname;
    private int age;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String eat() {
        System.out.println("🐖在吃饭饭");
        return "pig eat";
    }
    public void say() {
        System.out.println("🐖在叫");
    }
}
